package com.lingtong.nacosproducer.controller;

import com.lingtong.feign.NacosFeignClent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 孙灵通【sunlingtong@cyou-inc.com】
 * @ClassName: ProducerController
 * @Description:
 * @create 2021-11-15 18:49
 */
@RestController
public class ProducerController {

    @Autowired
    private NacosFeignClent nacosFeignClent;

    @GetMapping("hello")
    public String hello (){
        return  nacosFeignClent.hi();
    }
}
